package com.xxxx.microservice.forestry.component;

import com.xxxx.microservice.forestry.service.ExampleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * 项目启动后需要做的事情
 * @author yuziqun
 */
@Component
public class StartUp implements CommandLineRunner {

    @Autowired
    private ExampleService exampleService;

    @Override
    public void run(String... args) throws Exception {
        System.out.println(LocalDateTime.now() + ": start up");
//        exampleService.change();
    }
}
